/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/18 20:49:30
 */
Ext.define('Monkey.store.user.User', {
    extend: 'Monkey.store.BaseStore',
    alias: 'store.user',

    autoLoad: true,
    model: 'Monkey.model.user.User',
    proxy: {
        type: 'ajax',
        pageParam: 'page.pn',
        limitParam: 'page.size',
        url: Monkey.URL.SERVER_URL + "/m/users.json",
        extraParams: {
            fields: 'id,account,nick,email,mobile,status,sex,cardId,birthday,QQ,address,remark,organization[id:name]'
        },
        reader: {
            type: 'json',
            totalProperty: 'data.totalAmount',
            rootProperty: 'data.elements'
        }
    }
});